var domain_name = localStorage.getItem("domain_name")
if(domain_name != "") {
	$(".domain_name").html(domain_name)
	$(".input").val(domain_name)
}
var domain_rxtm = localStorage.getItem("domain_rxtm")
if(domain_rxtm != "") {
	$(".domain_rxtm").html(domain_rxtm)
	$(".rxtm").val(domain_rxtm)
}
$(".input").keyup(function() {
	let val = $(".input").val()
	console.log(val)
	if(val == null || val == "") {
		$(".domain_name").html("xx.xxxxxx.xx")
		localStorage.setItem("domain_name", "xx.xxxxxx.xx")
		//				console.log("220")
	} else {
		localStorage.setItem("domain_name", val)
		$(".domain_name").html(val)
	}
})
$(".rxtm").keyup(function() {
	let val = $(".rxtm").val()
	console.log(val)
	if(val == null || val == "") {
		$(".domain_rxtm").html("mf.navlan.cn")
		localStorage.setItem("domain_rxtm", "mf.navlan.cn")
		//				console.log("220")
	} else {
		localStorage.setItem("domain_rxtm", val)
		$(".domain_rxtm").html(val)
	}
})
//点击复制1  点击当前位置，复制指定内容
//要引入 clipboard.min_1.js
//hkfmtjwm(mxwx,"copyBtn")
var mxwx;
$(".copyeadc").click(function() {
	var that = this;
	var copytext = $(this).parent().children(".textmwpw").text()
	console.log(copytext)
	mxwx = copytext
})
var clipboard = new Clipboard('.copyeadc', {
	text: function(event) {
		return mxwx || "0000";

	}
});
//			复制成功
clipboard.on('success', function(e) {
	//				alert("复制成功！去微信粘贴吧！");
	successfun()
});
//			复制失败
clipboard.on('error', function(e) {

});
var pgjf

function successfun() {
	clearTimeout(pgjf)
	$(".success").css("display", "block")
	pgjf = setTimeout(function() {
		$(".success").css("display", "none")
	}, 800)

}